package com.xinsoft.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.xinsoft.entity.dto.ScmPurchaseInstockParam;
import com.xinsoft.entity.dto.ScmPurchaseReturnDTO;
import com.xinsoft.entity.dto.ScmPurchaseReturnParam;
import com.xinsoft.entity.po.ScmPurchaseReturn;
import com.baomidou.mybatisplus.extension.service.IService;
import com.xinsoft.entity.vo.ScmPurchaseReturnPageVo;
import com.xinsoft.entity.vo.ScmPurchaseReturnVo;

import java.util.List;

/**
* @author ZYM
* @description 针对表【scm_purchase_return(采购退货)】的数据库操作Service
* @createDate 2023-07-27 14:15:43
*/
public interface ScmPurchaseReturnService extends IService<ScmPurchaseReturn> {

    IPage<ScmPurchaseReturnPageVo> findPageListByParam(ScmPurchaseReturnParam param);

    List<ScmPurchaseReturnPageVo> findListByParam(ScmPurchaseReturnParam param);

    Integer tempSave(ScmPurchaseReturnDTO dto);

    ScmPurchaseReturnVo detail(Integer id);

    void del(List<Integer> ids);

    void audit(Integer id);

    void reverseAudit(Integer id);

    void addOrUpdateAudit(ScmPurchaseReturnDTO scmPurchaseReturnDTO);

    void saveAudit(ScmPurchaseReturnDTO dto);
}
